Skip to main content

How to setup bots on your Team Fortress 2 Server


How to setup Bots on your Team Fortress 2 server.

Via Console

  1. Locate the console page on the control panel.
  2. Enter the command:
tf_bot_add <amount> <team> <class>
  • <amount> is the number of bots that you want.
  • <team> is the team you want them on Note: The <team> options are red and blue
  • <class> is the class that they use. Note: The <class> options are scout, soldier, pyro, demoman, heavyweapons, engineer, medic, sniper, and spy For Example if you wanted to add 4 soldiers to the blue team the command would be:
    tf_bot_add 4 blue soldier

Via Files

If you want to add bots to your game for all games, in the files tab find the file.:

/home/container/tf/cfg/server.cfg
  1. Add/Edit the following lines tf_bot_quota "<amount>"tf_bot_quota_mode "fill"tf_bot_auto_vacate "1".

Removing Bots

If you want to remove a bot,

  1. Navigate back to the console page of your server.
  2. Enter the command:
tf_bot_kick

Important Note: If your bots name has spaces in it then you will need to encase the name in quotes e.g. "sparky dog"

For example:

tf_bot_kick bot

OR

tf_bot_kick "sparky dog"

If you want to kick all the bots you can use the command:

tf_bot_kick all

If you require any further assistance, please create a ticket here.


Created By: Cooper A.